package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Praise;
import cn.wolfcode.trip.base.domain.StrategyComment;
import cn.wolfcode.trip.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StrategyCommentMapper {

    int insert(StrategyComment record);

    StrategyComment selectByPrimaryKey(Long id);

    List<StrategyComment> queryForList(QueryObject qo);

    int updateByPrimaryKey(StrategyComment record);

    List selectUsers(@Param("state") Integer state);

    List queryComments(Long userId);

    void updateAddNums(Long commentId);

    void insertCommentPraise(Praise obj);

    void deleteCommentPraise(Praise obj);

    void updateSubNums(Long commentId);

    String hasCommentPraise(Praise obj);
}